package com.lastoffer2.activity;

import com.lastct.dao.Offer;
import com.lastoffer2.activity.DetailOfferActivity;
import android.os.Bundle;
import android.content.Intent;
import android.view.View;
import android.widget.AdapterView;
import android.widget.AdapterView.OnItemClickListener;

public class ListOfferSuperUserActivity extends ListOfferActivity implements OnItemClickListener {

	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		Intent intent = getIntent();
		this.userID = intent.getIntExtra("IdUser", -1);
		super.onCreate(savedInstanceState);
		
	}

	
	@Override
	public void onItemClick(AdapterView<?> adapterView, View view, int position, long id) {
		Offer o=(Offer) adapterView.getItemAtPosition(position);
		Intent i = new Intent(ListOfferSuperUserActivity.this, InsertOfferActivity.class);
		i.putExtra("idMod", o.getIdoffers());
		startActivity(i);
	}

}
